<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
     <!-- <div @click="toAbout">调到about页面</div>
      -->
      <!-- <a href="/about">跳到vue微服务 about页面</a> -->
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <!-- 路由出口 -->
  <!-- 路由匹配到的组件将渲染在这里 -->
  <!-- <router-view></router-view> -->
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'

export default {
  name: 'App',
  components: {
    HelloWorld
  },
  mounted() {
    console.log('app mounted', this)
  },
  methods: {
    toAbout() {
      this.$router.push('/about')
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
